package com.ms.tank.abstractfactory;

import com.ms.tank.enums.Group;

import java.awt.*;

/**
 * 坦克组
 * @Date 2021/3/18 17:56:36
 * @Author mashuai
 */
public abstract class BaseTank {

    public Group group = Group.BAD;

    public Rectangle rectangle = new Rectangle();

    /**
     * 画图方法
     * @param graphics
     * @Return void
     * @Date 2021/3/18 18:01:23
     * @Author mashuai
     */
    public abstract void paint(Graphics graphics);

    /**
     * 获取方向
     * @param
     * @Return void
     * @Date 2021/3/18 18:07:06
     * @Author mashuai
     */
    public abstract void die();

    /**
     * 获取x坐标
     * @param
     * @Return int
     * @Date 2021/3/18 18:07:18
     * @Author mashuai
     */
    public abstract int getX();

    /**
     * 获取y坐标
     * @param
     * @Return int
     * @Date 2021/3/18 18:07:34
     * @Author mashuai
     */
    public abstract int getY();

    public Group getGroup() {
        return group;
    }

}
